{if $order_list}
<div class="row">
	<div class="col-md-12">
		<div class="portlet light">
			<div class="portlet-body ">

				<!--商家开始-->
				{loop $order_list $uid $store}
				<div class="row" style="margin-top: 15px">
					<div class="col-md-12" style="padding-bottom:10px;border-bottom: 1px solid #eee;">
						<input type="checkbox" checked="checked" name="checkShop" class="jdcheckbox jdr{$uid} toggle md-check" onclick="jdr_uid(this, '{$uid}')">
						<a style="margin-left:10px" class="btn default btn-xs" href="{$store.url}" target="_blank">商家：{$store.name}</a>
					</div>
				</div>
				{loop $store.goods $t}
				<div class="row" style="margin-top: 10px;">
					<div class="col-md-6">
						<div class="media">
							<input type="checkbox" name="ids[]" value="{if $t.use}{$t.id}{/if}" checked="checked" class="pull-left jdcheckbox jdr{$uid}" >
							<a style="margin-left:15px" class="pull-left" href="{$t.url}" target="_blank">
								<img style="width:50px;height:50px" src="{dr_thumb($t['thumb'], 50, 50)}">
							</a>
							<div class="media-body">
								<h5 class="media-heading"><a href="{$t.url}" target="_blank">{$t.title}</a></h5>
								{loop $t.sku $sname $svalue}
								<label>{$sname}：{$svalue}&nbsp;&nbsp;</label>
								{/loop}
							</div>
						</div>
					</div>
					<div class="col-md-2" ><b>{if $t.order_score}{intval($t.order_price)}{SITE_SCORE}{else}￥{number_format($t.order_price, 2)}元{/if}</b></div>
					<div class="col-md-2 text-center" >
						<div class="quantity-form">
							<a href="javascript:void(0);" onclick="dr_update_num(0, '{$t.id}')" class="decrement">-</a>
							<input id="dr_row_num_{$t.id}" onblur="dr_set_num(this.value, '{$t.id}' )" value="{$t.quantity}" type="text" class="itxt" >
							<a href="javascript:void(0);" onclick="dr_update_num(1, '{$t.id}')" class="increment">+</a>
						</div>
						<div class="btn default btn-xs" id="dr_update_{$t.id}">
							{if $t.use}有货{else}无货{/if}
						</div>
					</div>
					<div class="col-md-2" >
						<strong>{if $t.order_score}{intval($t.price)}{SITE_SCORE}{else}￥{number_format($t.price, 2)}元{/if}</strong>
						<a class="btn red-mint btn-xs" href="javascript:void(0);" onclick="dr_delete('{$t.id}')"> <i class="fa fa-trash-o"></i> 删除</a>
						<a id="dr_delete_load_{$t.id}" style="display: none" class="cart-follow" href="javascript:void(0);"><img src="{THEME_PATH}admin/images/loading-mini.gif" /></a>
					</div>
				</div>
				{/loop}
				{/loop}

			</div>
		</div>
	</div>
</div>
<div class="row">
	<div class="col-md-12">
		<div class="portlet light">
			<div class="portlet-body ">
				<div class="row">
					<div class="col-md-6 col-sm-12">
						<input type="checkbox" checked="checked" class="jdcheckbox jdrall toggle md-check" onclick="jdr_all(this)">
						<a {if IS_PC}style="margin-left:10px"{/if} href="javascript:;" onclick="dr_delete_all()" class="btn red-mint btn-xs"> <i class="fa fa-trash-o"></i> 删除选中的商品</a>
						<a href="javascript:;" id="dr_delete_load_all" style="display: none;padding-top: 15px;" class="follow-batch"><img src="{THEME_PATH}admin/images/loading-mini.gif" /></a>
						已选择<b>{$order_total.num}</b>件
					</div>
					<div class="col-md-6 col-sm-12 text-right" {if IS_MOBILE}style="margin-top: 10px;"{/if}>
						<span class="txt">总价（不含运费）：</span>
						<span class="price sumPrice"><b>¥{number_format($order_total.price, 2)}元</b> + <b>{intval($order_total.score)}{SITE_SCORE}</b></span>
						{if $order_total.jieyue}
						<span class="txt">&nbsp;已节省：</span>
						<span class="price totalRePrice">- ¥{number_format($order_total.jieyue, 2)}元</span>
						{/if}
						&nbsp;
						<button {if IS_MOBILE}style="margin-top: 10px;"{/if} type="submit" class="btn btn-lg default"> <i class="fa fa-rmb"></i> 立即结算</button>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
{else}
<div class="row">
	<div class="col-md-12 page-404">
		<div class="number font-red" style="top:20px;"> <i class="fa fa-times-circle-o"></i> </div>
		<div class="details">
			<h3>购物车空空的</h3>
			<p> 购物车内暂时没有商品，<a href="{SITE_URL}"> 访问首页 </a>，挑选喜欢的商品！ </p>

		</div>
	</div>
</div>
{/if}